/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package podologia.beansDB;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Hernan
 */
@Embeddable
public class TratapatoxatencionPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "idTrataPato")
    private int idTrataPato;
    @Basic(optional = false)
    @Column(name = "idAtencion")
    private int idAtencion;

    public TratapatoxatencionPK() {
    }

    public TratapatoxatencionPK(int idTrataPato, int idAtencion) {
        this.idTrataPato = idTrataPato;
        this.idAtencion = idAtencion;
    }

    public int getIdTrataPato() {
        return idTrataPato;
    }

    public void setIdTrataPato(int idTrataPato) {
        this.idTrataPato = idTrataPato;
    }

    public int getIdAtencion() {
        return idAtencion;
    }

    public void setIdAtencion(int idAtencion) {
        this.idAtencion = idAtencion;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idTrataPato;
        hash += (int) idAtencion;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TratapatoxatencionPK)) {
            return false;
        }
        TratapatoxatencionPK other = (TratapatoxatencionPK) object;
        if (this.idTrataPato != other.idTrataPato) {
            return false;
        }
        if (this.idAtencion != other.idAtencion) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "javaapplication2.TratapatoxatencionPK[idTrataPato=" + idTrataPato + ", idAtencion=" + idAtencion + "]";
    }

}
